import requests
from lxml import etree

url = 'https://zz.zu.anjuke.com/?pi=baidu-cpchz-zz-ty2&kwid=574245339107'

res = requests.get(url)
tree = etree.HTML(res.text)
items = tree.xpath('//div[@class="zu-itemmod clearfix"]')
# print(items)
for item in items:
    title = item.xpath('.//b/text()')[0]
    price = item.xpath('.//strong[@class="price"]/text()')[0]
    detail_url = item.xpath('./div[@class="zu-info"]//a/@href')[0]
    print(title, price,detail_url)
# print(res.text)